package com.jshx.sz.gdjt.util;

import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;

/**
 * 获取应用程序相关信息的类
 * @author xiangchangan
 * @time 2013-08-20
 */
public class VersionUtil {
	public static String getVerName(Context context) {
		String verName = "";
		try {
			verName = context.getPackageManager().getPackageInfo(
					context.getPackageName(), 0).versionName;
		} catch (NameNotFoundException e) {
			return "V1.0-Android";
		}
		return verName;
	}
}
